package cn.kent.templateMethodPattern;

/**
 * H2型号悍马
 *
 * @author kent
 * @date 2021/5/18 16:20
 */
public class HummerH2Model extends HummerModel {
    @Override
    public void start() {
        System.out.println("悍马H2发动...");
    }

    @Override
    public void stop() {
        System.out.println("悍马H2熄火停止...");
    }

    @Override
    public void alarm() {
        System.out.println("悍马H2鸣笛...");
    }

    @Override
    public void engineBoom() {
        System.out.println("悍马H2轰鸣...");
    }
}
